/*
    猜数字游戏
*/
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
int main() {
    srand(time(0));
    int  num1 = 0;
    int num = rand() % 100;
    do {
        printf("请输入一个数：");
        scanf("%d",&num1);
    	if (num == num1) {
        printf("哇 ！ 猜对啦！！！\n");
	    break;
  	}
    	else if (num1 > num) {
	    printf("请再小一点好么！\n");
    	}
	else {
	    printf("请再大一点好么！\n");
	}
    } while (num != num1);
    return 0;
}
